package com.example;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @ClassName UserValidatorImpl
 * @Description
 * @Author Yin
 * @Date 2021/4/11 23:48
 * @Version 1.0
 */
public class UserValidatorImpl implements UserValidator {
    @Override
    public boolean validate(User user) {
        return user.name.equals("yin");
    }
}
